package com.xiaohu.myspace.database.dao;

import java.util.List;

import org.hibernate.Session;

import com.xiaohu.myspace.database.entity.MessageInfo;
import com.xiaohu.myspace.vo.MessageInfoVo;

public interface MessageInfoDao {
	public List<MessageInfoVo> getMessageInfoWithHQL(String hql,int startNum,int pageSize,Session session);
    public boolean addMessage(MessageInfo messageInfo,Session session);
    public boolean deleteMessage(MessageInfo messageInfo,Session session);
    public boolean updateMessage(MessageInfo messageInfo,Session session);
    public MessageInfo findMessageWithMessageId(int messageId,Session session);
}
